import { httpRequest } from '../manage'

export const IndexAPI = {
  /**
   * 地址逆解析
   * @param latitude
   * @param longitude
   */
  reverse(latitude: number, longitude: number) {
    return httpRequest.post('/app/index/reverse', {
      lat: latitude,
      lng: longitude,
    })
  },

  /**
   * 获取用户信息
   * @param user
   */
  getPlateNumber(user: string) {
    return httpRequest.post('/app/index/getPlateNumber', { scene: user })
  },

  /**
   * 挪车提醒
   * @param userId
   * @param address
   */
  remind(userId: string, address: string) {
    return httpRequest.post('/app/index/remind', {
      user: userId,
      address,
    })
  },

}
